package com.amkai.aes.webservice.binary.objecthandler;

import java.io.Serializable;

import com.amkai.aes.aescommon.service.binary.job.SearchJob;
import com.amkai.aes.aescommon.service.search.SearchParameter;
import com.amkai.aes.server.search.SearchManager;
import com.amkai.aes.webservice.binary.JobObjectHandler;

public class SearchTableHandler implements JobObjectHandler<SearchJob, Serializable, Serializable> {

	public Serializable process(SearchJob job, Serializable searchParameter) throws Exception {
		Serializable res;
		long t1 = System.nanoTime();
		res = SearchManager.createResult((SearchParameter)searchParameter, job.getModuleDepartment());
		long t2 = System.nanoTime();
		
		return res;
	}

}
